package com.fiap.dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class Manager {

	private static EntityManagerFactory factory;

	public Manager() {
		super();
	}
	
	public static EntityManagerFactory getInstance(){
		if(factory == null){
			factory = Persistence.createEntityManagerFactory("CLIENTE_ORACLE");
		}
		
		return factory;
	}
}
